
# 网格布局

import tkinter

root = tkinter.Tk()
root.geometry('800x600')


button1 = tkinter.Button(root,text = 'button1')
button1.grid(row=0,column = 0)

button1 = tkinter.Button(root,text = 'button1')
button1.grid(row=2,column = 2)

button1 = tkinter.Button(root,text = 'button1')
button1.grid(row=3,column = 1)


root.mainloop()

